package com.filmbooks.fragment.mine.child;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.filmbooks.R;
import com.filmbooks.contract.mine.PersonalContract;
import com.zyw.horrarndoo.sdk.base.BasePresenter;
import com.zyw.horrarndoo.sdk.base.fragment.BaseMVPCompatFragment;
import com.zyw.horrarndoo.sdk.rxbus.RxBus;

import me.yokeyword.fragmentation.ISupportFragment;

/**
 * Created by heshuxiang on 2018/3/2.
 * 描述：
 * 公司：盟将威
 * 作者：heshuxiang
 * 日期：2018/3/2.
 * 工程：FilmBooks
 * 包：com.filmbooks.fragment.mine.child
 */

public class MineUpperFragment extends BaseMVPCompatFragment<PersonalContract.PresonalUpperPersenter, PersonalContract.IPersonalUpperModel> {
    public static MineUpperFragment newInstance() {
        Bundle args = new Bundle();
        MineUpperFragment fragment = new MineUpperFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @NonNull
    @Override
    public BasePresenter initPresenter() {
        return null;
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_personal_upper;
    }

    @Override
    public void initData() {
        super.initData();
        RxBus.get().register(this);
    }

    @Override
    public void onDetach() {
        super.onDetach();
        RxBus.get().unRegister(this);
    }

    @Override
    public void initUI(View view, @Nullable Bundle savedInstanceState) {

    }

    @Override
    public boolean onBackPressedSupport() {
        //不处理，直接丢给Activity onBackPressedSupport处理
        //若此处要拦截回退逻辑到HomeFragment，直接使用RxBus处理
        return false;
    }
}
